package com.epfly.promo.activity.dao;

import com.epfly.promo.activity.entity.ActivityUserRecordEntity;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.additional.insert.InsertListMapper;
import tk.mybatis.mapper.common.BaseMapper;

@Mapper
public interface ActivityUserRecordMapper extends BaseMapper<ActivityUserRecordEntity>, InsertListMapper<ActivityUserRecordEntity> {


    @Delete(value = "delete from tbl_activity_user_record where activity_id = #{activityId} and order_id = #{orderId}")
    int deleteByActivityIdAndOrderId(@Param(value = "activityId") Long activityId, @Param(value = "orderId") String orderId);
}
